package com.gopay.common.core.dic.dao.impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.core.dic.dao.DicCurrencyTypeDAO;
import com.gopay.common.domain.dic.DicCurrencyType;

/**
 * @ClassName: DicCurrencyTypeDAOImpl 
 * @Description: 币种类型字典表
 * @author huangcheng 
 * @date 2017年7月19日 下午3:10:16
 */
@Repository("dicCurrencyTypeDAO")
public class DicCurrencyTypeDAOImpl extends BaseDAOImpl<DicCurrencyType, Serializable> implements DicCurrencyTypeDAO{
    @Override
    public List<DicCurrencyType> getAllCurrencyList() {
        String hql = "from DicCurrencyType d where d.isDeleted=:isDeleted order by d.sort asc";
        Map<String, Object> param = new HashMap<String, Object>();
        param.put("isDeleted", "1");
        return findByHql(hql, param);
    }

}